package com.xishu.entity.customer;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity(name = "customer_order")
@Table(indexes = {@Index(columnList = "customerId")})
public class CustomerOrder extends AbstractEntity {
    @ApiModelProperty(value = "会员ID")
    private Long customerId;

    @ApiModelProperty(value = "消费")
    private Double userCost;

    @ApiModelProperty(value = "获得积分")
    private Integer score;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "支付订单ID")
    private Long payOrderId;

    @ApiModelProperty(value = "分店ID")
    private Long shopId;

    @ApiModelProperty(value = "订单类型, 1是堂食，2是外卖")
    private Integer orderType;

    @ApiModelProperty(value = "分店名称")
    @Transient
    private String shopName_zh;

    @ApiModelProperty(value = "分店名称")
    @Transient
    private String shopName_en;

    public Long getPayOrderId() {
        return payOrderId;
    }

    public void setPayOrderId(Long payOrderId) {
        this.payOrderId = payOrderId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getShopName_zh() {
        return shopName_zh;
    }

    public void setShopName_zh(String shopName_zh) {
        this.shopName_zh = shopName_zh;
    }

    public String getShopName_en() {
        return shopName_en;
    }

    public void setShopName_en(String shopName_en) {
        this.shopName_en = shopName_en;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Double getUserCost() {
        return userCost;
    }

    public void setUserCost(Double userCost) {
        this.userCost = userCost;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }
}
